Optimal. Leaf size=32 \[ a x+\frac{b \tan ^2(c+d x)}{2 d}+\frac{b \log (\cos (c+d x))}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0194858, antiderivative size = 32, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.167, Rules used = {3473, 3475} \[ a x+\frac{b \tan ^2(c+d x)}{2 d}+\frac{b \log (\cos (c+d x))}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3473
Rule 3475
Rubi steps
\begin{align*} \int \left (a+b \tan ^3(c+d x)\right ) \, dx &=a x+b \int \tan ^3(c+d x) \, dx\\ &=a x+\frac{b \tan ^2(c+d x)}{2 d}-b \int \tan (c+d x) \, dx\\ &=a x+\frac{b \log (\cos (c+d x))}{d}+\frac{b \tan ^2(c+d x)}{2 d}\\ \end{align*}
Mathematica [A] time = 0.0768237, size = 30, normalized size = 0.94 \[ a x+\frac{b \left (\tan ^2(c+d x)+2 \log (\cos (c+d x))\right )}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.005, size = 36, normalized size = 1.1 \begin{align*} ax+{\frac{b \left ( \tan \left ( dx+c \right ) \right ) ^{2}}{2\,d}}-{\frac{b\ln \left ( \left ( \tan \left ( dx+c \right ) \right ) ^{2}+1 \right ) }{2\,d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.998025, size = 49, normalized size = 1.53 \begin{align*} a x - \frac{b{\left (\frac{1}{\sin \left (d x + c\right )^{2} - 1} - \log \left (\sin \left (d x + c\right )^{2} - 1\right )\right )}}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.61172, size = 92, normalized size = 2.88 \begin{align*} \frac{2 \, a d x + b \tan \left (d x + c\right )^{2} + b \log \left (\frac{1}{\tan \left (d x + c\right )^{2} + 1}\right )}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.209, size = 37, normalized size = 1.16 \begin{align*} a x + b \left (\begin{cases} - \frac{\log{\left (\tan ^{2}{\left (c + d x \right )} + 1 \right )}}{2 d} + \frac{\tan ^{2}{\left (c + d x \right )}}{2 d} & \text{for}\: d \neq 0 \\x \tan ^{3}{\left (c \right )} & \text{otherwise} \end{cases}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.50465, size = 339, normalized size = 10.59 \begin{align*} a x + \frac{{\left (\log \left (\frac{4 \,{\left (\tan \left (c\right )^{2} + 1\right )}}{\tan \left (d x\right )^{4} \tan \left (c\right )^{2} - 2 \, \tan \left (d x\right )^{3} \tan \left (c\right ) + \tan \left (d x\right )^{2} \tan \left (c\right )^{2} + \tan \left (d x\right )^{2} - 2 \, \tan \left (d x\right ) \tan \left (c\right ) + 1}\right ) \tan \left (d x\right )^{2} \tan \left (c\right )^{2} + \tan \left (d x\right )^{2} \tan \left (c\right )^{2} - 2 \, \log \left (\frac{4 \,{\left (\tan \left (c\right )^{2} + 1\right )}}{\tan \left (d x\right )^{4} \tan \left (c\right )^{2} - 2 \, \tan \left (d x\right )^{3} \tan \left (c\right ) + \tan \left (d x\right )^{2} \tan \left (c\right )^{2} + \tan \left (d x\right )^{2} - 2 \, \tan \left (d x\right ) \tan \left (c\right ) + 1}\right ) \tan \left (d x\right ) \tan \left (c\right ) + \tan \left (d x\right )^{2} + \tan \left (c\right )^{2} + \log \left (\frac{4 \,{\left (\tan \left (c\right )^{2} + 1\right )}}{\tan \left (d x\right )^{4} \tan \left (c\right )^{2} - 2 \, \tan \left (d x\right )^{3} \tan \left (c\right ) + \tan \left (d x\right )^{2} \tan \left (c\right )^{2} + \tan \left (d x\right )^{2} - 2 \, \tan \left (d x\right ) \tan \left (c\right ) + 1}\right ) + 1\right )} b}{2 \,{\left (d \tan \left (d x\right )^{2} \tan \left (c\right )^{2} - 2 \, d \tan \left (d x\right ) \tan \left (c\right ) + d\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]